﻿@using DIS.Infrastructure.Entities.Entity;
@using DIS.Infrastructure.Entities.DTO;
@{
    Layout = null;
    List<MenuDTO> menus = ViewBag.MenuList;
}
<!DOCTYPE html>
<html>
<head>
    <title>Left</title>
    <link rel="stylesheet" href="/Content/css/base.css" type="text/css" />
    <link rel="stylesheet" href="/Content/css/leftmenu.css" type="text/css" />
    @*<script type="text/javascript">          var curopenItem = "1";</script>
<script src="/scripts/menu.js" type="text/javascript"/> *@@*<base target="main" />*@
</head>
<body>
    <table width="99%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td style="padding-left: 3px; padding-top: 8px" valign="top">
            @{
                if(menus!=null&&menus.Any())
                {
                    int j=0;
                    foreach(var item in menus)
                    {
                        @:<dl class="bitem">
                           @: <dt onclick="showHide('items@(j)_1')"><b>@item.MenuName</b></dt>
                            @:<dd style="display:block" class="sitem" id="items@(j)_1">
                              @:<ul class="sitemu">
                                if(item.ChildMenus!=null&&item.ChildMenus.Any())
                                {
                                    foreach(var child in item.ChildMenus)
                                    {
                                        if(child.IsShow==true)
                                        {
                                             <li>
                                              <div class="items">
                                                <div class="fllct"><a href="@child.MenuUrl" target="main">@child.MenuName</a></div>
                 
                                              </div>    
                                            </li>
                                        }
                                    }

                                }
                           @:</ul>
                          @:</dd>
                        @:</dl>
                        j++;
                    }
                }
            }
            </td>
        </tr>
    </table>
</body>
</html>
